#include <vector>
#include <iostream>
class Test
{
public:
    void addNum(int num)
    {
        intVec.push_back(num);
        std::cout<<"放入元素成功"<<std::endl;
    }

private:
    std::vector<int> intVec;
};
int main()
{
    Test test;
    test.addNum(100);
    return 0;
}